//
// Created by 29491 on 2025/2/4.
//

#ifndef ZGT6_LCD_MENU_V2_0_TIME_LOAD_H
#define ZGT6_LCD_MENU_V2_0_TIME_LOAD_H

#include "gui.h"
#include "stdio.h"
#include "test.h"
#include "lcd.h"
#include "tim.h"


// 定义结构体来存储时间信息
typedef struct {
    int year;
    int month;
    int day;
    int hour;
    int minute;
    int second;
} Time_load;


void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
void initTime(Time_load *time);
int isLeapYear(int year);
int getDaysInMonth(int year, int month);
void updateTime(Time_load *time);
void TIME_Init(void);


#endif //ZGT6_LCD_MENU_V2_0_TIME_LOAD_H


